package org.foreveross.taluo.entity;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the AC_ROLEGROUP database table.
 * 
 */
@Embeddable
public class AcRolegroupEntityPK extends org.foreveross.que.infra.base.ddd.domain.BaseEntity  {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;

	private long roleids;

	private long groupids;

    public AcRolegroupEntityPK() {
    }
	public long getRoleids() {
		return this.roleids;
	}
	public void setRoleids(long roleids) {
		this.roleids = roleids;
	}
	public long getGroupids() {
		return this.groupids;
	}
	public void setGroupids(long groupids) {
		this.groupids = groupids;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof AcRolegroupEntityPK)) {
			return false;
		}
		AcRolegroupEntityPK castOther = (AcRolegroupEntityPK)other;
		return 
			(this.roleids == castOther.roleids)
			&& (this.groupids == castOther.groupids);

    }
    
	public int hashCode() {
		final int prime = 31;
		int hash = 17;
		hash = hash * prime + ((int) (this.roleids ^ (this.roleids >>> 32)));
		hash = hash * prime + ((int) (this.groupids ^ (this.groupids >>> 32)));
		
		return hash;
    }
}